import 'package:flutter/material.dart';
import 'package:flutter_application_pd/common/index.dart';
import 'package:get/get.dart';

class Application extends StatelessWidget {
  const Application({super.key});

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
        useMaterial3: true,
        appBarTheme: const AppBarTheme(
            backgroundColor: Colors.blueAccent,
            centerTitle: true,
            titleTextStyle: TextStyle(
              color: Colors.white,
              fontSize: 20.0, // 设置标题字体大小
            )),
      ),
      initialRoute: RouteNames.login,
      getPages: RoutePages.list,
    );
  }
}
